import React from 'react';
import { Select } from 'antd';

export function CustomSelect({ options, title, placeholder }) {

  return (
    <div className="flex items-center whitespace-nowrap">
      <span className="flex-shrink-0 font-bold">{title}</span>
      <Select
        className='flex-grow'
        mode="multiple"
        allowClear
        options={options}
        placeholder={placeholder}
      />
    </div>
  );
}
